<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>免费测斑结果</title>
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <!--标准mui.css-->
    <link rel="stylesheet" href="../css/mui.min.css">

    <!--App自定义的css-->
    <!--<link rel="stylesheet" type="text/css" href="../css/app.css"/>-->
    <style>
        li{ list-style:none; }
        .mui-input-row label{width: 100%;font-size: 15px;}
        label{font-size: 12px!important;
        }
    </style>

</head>
<body>
<div class="mui-content" >            
    <form class="mui-input-group" >
        <div class="mui-input-row ">
            <label >订单编号：<span id="oredid"></span></label>
        </div>
        <div class="mui-input-row ">
            <label style="">下单时间：<span id="time"></span></label>
        </div>
        <div class="mui-input-row ">
        <label>订单状态：<span id="oredtype"></span></label>
    </div>
        <div class="mui-input-row ">
            <label>检测结果：<span id="remake"></span></label>
        </div>
<!--        <div class="mui-input-row " style="height: 150px;margin-left: 30%">-->
<!--            <label>正面照：</label>-->
<!--            <img src="" id="zimg" style="width: 50%;height: 150px;margin-left: 30%">-->
<!--        </div>-->
<!--        <div class="mui-input-row "style="height: 150px;margin-left: 30%">-->
<!--            <label>左面照：</label>-->
<!--            <img src="" id="limg" style="width: 50%;height: 150px;margin-left: 30%">-->
<!--        </div>-->
<!--        <div class="mui-input-row "style="height: 150px;">-->
<!--            <label>右面照：</label>-->
<!--            <img src="" id="rimg" style="width: 50%;height: 150px;margin-left: 30%">-->
<!--        </div>-->
    </form>


    <div class="footerpage">
    </div>
</div>

</body>

<script src="../js/mui.min.js"></script>
<script src="../js/practise/push.js"></script>
<script src="../js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/getUrlParam.js"></script>
<script src="../js/cookieutil.js" type="text/javascript" charset="utf-8"></script>
<script>
    $(function(){
        /*公共部分
         * 导航栏
         * footer CopyRight
         */

        $(".headage").load("head.html");
        $(".footerpage").load("footer.html");
        var id=getUrlParam("id");
        if (id==undefined){ mui.toast('请求错误id为空');return;}
        var upopenid=getUrlParam("upopenid");
        if(upopenid==undefined){upopenid=="";}
        mui.post('/Order/findOredId',
            {
                id:id
            },
            function(data){
                console.log(data);
                if (data.code&&data.object!=null){
                    var  item=data.object;
                    var oredid = document.getElementById("oredid");
                    oredid.innerHTML =item.id;//改变内容

                    var time = document.getElementById("time");
                    time.innerHTML =formattime(item.createtime);//改变内容

                    var oredtype = document.getElementById("oredtype");
                    oredtype.innerHTML =getstatustypefree(item.statustype);//改变内容

                    var remake = document.getElementById("remake");
                    if (item.remake.indexOf("您的斑不在范围内！")>0){

                        remake.innerHTML ="抱歉，您的斑不在范围内，详情咨询客服！";//改变内容
                        return;
                    }

                    if (item.remake.indexOf("您的照片不高清")>0){

                        remake.innerHTML="您免费测斑照片不高清，请重新检测！";
                        return;
                    }
                    remake.innerHTML =item.remake;//改变内容

                    // var arr=item.preimages.split(",");
                    // var x = document.getElementById("zimg");
                    // x.src =path+ arr[0];//改变内容
                    // var l = document.getElementById("limg");
                    // l.src = path+arr[1];//改变内容
                    // var r = document.getElementById("rimg");
                    // r.src = path+arr[2];//改变内容
                }
            },'json'
        );
    });
</script>
</html>